package fi.pakkanen.yarpg.creature.player;

import java.util.Map;

import fi.pakkanen.yarpg.creature.AttributeType;
import fi.pakkanen.yarpg.creature.Attributes;

/**
 * The attributes of a player.
 * 
 * @author Oliver Michels <oliver.michels@gmx.net>
 * 
 */
public class PlayerAttributes extends Attributes {

	private int level;
	private int experiencePoints;

	
	public PlayerAttributes(Map<AttributeType, Integer> maxAttributeValues) {
		super(maxAttributeValues);
		
		experiencePoints = 0;
		level = 1;
	}

	public int getLevel() {
		return level;
	}

	public int getExperiencePoints() {
		return experiencePoints;
	}

	public void addExperiencePoints(int delta) {
		experiencePoints += delta;
		// TODO Handle leveling up
	}

}
